package String3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-11-14
 * Time: 23:01
 */
public class demo1 {
    public static void main(String[] args) {
        String s = "";
        int loopCount = 10_0000;
        long startTime = System.currentTimeMillis();
        for (int i = 0; i < loopCount; i++) {
            s += i;
        }
        long endTime = System.currentTimeMillis();
        System.out.println("时间："+(endTime - startTime));
    }
}
